package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.model.domain.GoodsParam;
import com.weixing.mall.provider.model.vo.GoodsParamVo;
import com.weixing.mall.provider.model.vo.SpuParamVo;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 商品模块-商品参数 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface GoodsParamMapper extends BaseMapper<GoodsParam> {
    List<GoodsParamVo> selectByGoodsId(Long goodsId);



    GoodsParam selectGoodsId(Long id);

    void update(ArrayList<GoodsParam> list);

    void delAllByGoodsId(ArrayList<GoodsParam> list);

    void deleteByGoodsId(Long goodsId);

    List<SpuParamVo> selectSpuParamByGoodsId(Long goodsId);
}
